import request from '@/utils/request'

// 查询配置地址列表
export function listLogisticsaddress(query) {
  return request({
    url: '/logisticsaddress/logisticsaddress/list',
    method: 'get',
    params: query
  })
}

// 查询配置地址详细
export function getLogisticsaddress(addressId) {
  return request({
    url: '/logisticsaddress/logisticsaddress/' + addressId,
    method: 'get'
  })
}

// 新增配置地址
export function addLogisticsaddress(data) {
  return request({
    url: '/logisticsaddress/logisticsaddress',
    method: 'post',
    data: data
  })
}

// 修改配置地址
export function updateLogisticsaddress(data) {
  return request({
    url: '/logisticsaddress/logisticsaddress',
    method: 'put',
    data: data
  })
}

// 删除配置地址
export function delLogisticsaddress(addressId) {
  return request({
    url: '/logisticsaddress/logisticsaddress/' + addressId,
    method: 'delete'
  })
}
